const app = getApp()
Page({
  data: {
    domainName: app.domainName,
    qiuNames:[]
  },
  onLoad() {
   
  },
  setqiu(e){
    console.log(e)
    var _id=e.currentTarget.dataset.id;
    if('' !== _id){
      wx.redirectTo({url: '/pages/addqiu/index?qid='+_id})
      return;
    }
  },
  goBack(){
    wx.redirectTo({url: '/pages/addqiu/index'})
    return;
  },
  setinput(e){
    var _this=this;
    wx.request({
      url: app.domainName + 'web/?c=searchqiu',
      method: 'POST',
      data: {n:e.detail.value}, header: { 'content-type': 'application/x-www-form-urlencoded' },
      success: function (res) {
           _this.setData({qiuNames:res.data.n});
      }});

  }
})
